我用“<h1>”标签定义标题时,字的底边跟下边框之间有很大的距离,怎样让他们没有距离?

来源:百度知道 编辑:UC知道 时间:2024/05/17 01:21:13
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 2</title>
<style type="text/css">
<!-
h1, h2, h3, h4, h5 {
font-size:11px;
font-family:tahoma;
padding:0;
margin:0;
}

->
</style>

</head>

<body>

<table border="1" width="30%" id="table1">
<tr>
<td><h1>hhhhhhhhhhhhh</h1></td>
</tr>
</table>

</body>
用<h1>对搜索引擎不是很好嘛?

相信你使用<h1>标记.你的ccs定义也就不起作用了.建议更换h1~h5标记名称.在使用:<td class="...">

貌似没办法解决,你干嘛用<h1></h1>格式标签呢,这个标签主要是为那些文章段落的标题使用的,你可以直接设置它的大小啊